﻿using Acme.ELeMe.SDK.Api;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Modularity;

namespace Acme.ELeMe.SDK;

public class AcmeELeMeSdkModule : AbpModule
{
    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        // base.ConfigureServices(context);
        context.Services.AddHttpApi<IElmApi>()
            .ConfigureNewtonsoftJson(opt =>
            {
            })
            .ConfigureHttpClient(s => s.BaseAddress = new Uri("https://api-be.ele.me"));
    }
}